package pri.hillchen.springbootstd.bms.service.system.impl;

import org.springframework.stereotype.Service;
import pri.hillchen.springbootstd.bms.common.base.BaseServiceImpl;
import pri.hillchen.springbootstd.bms.entity.system.User;
import pri.hillchen.springbootstd.bms.mapper.system.UserMapper;
import pri.hillchen.springbootstd.bms.service.system.UserService;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author hillchen
 * @since 2017-10-19
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implements UserService {
    @Override
    public User findUserByUserName(String userName) {
        User user = new User();
        user.setAccount(userName);
        return baseMapper.selectOne(user);
    }
}
